<!doctype html>
<html lang="zh-CN">
<head><meta name="generator" content="Hexo 3.8.0">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=11,IE=10,IE=9,IE=8">
    <meta name="baidu-site-verification" content="dIcXMeY8Ya">
    
    <title>文章归档: 2019 | blog</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
    <meta name="keywords" content="Jim, 服务端, Java, Java开发">
    <meta name="description" content="Jim个人学习记录">

    
    <link rel="alternative" href="/atom.xml" title="blog" type="application/atom+xml">
    
    
    <link rel="shortcut icon" href="/favicon.ico">
    
    <link rel="stylesheet" href="/css/style.css">
    <!--[if lt IE 9]>
    <script src="/js/html5.js"></script>
    <![endif]-->
    
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?fd459238242776d173cdc64918fb32f2";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>


</head>
</html>
<body class="home">
    <!--[if lt IE 9]>
    <div class="browsehappy">
        当前网页 <strong>不支持</strong>
        你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.
    </div>
    <![endif]-->

    <!-- 博客头部 -->
    <header class="header">
    <section class="container header-main">
        <div class="logo">
            <a href="/">
                <div class="cover">
                    <span class="name">blog</span>
                    <span class="description"></span>
                </div>
            </a>
        </div>
        <div class="dropnav icon-paragraph-justify" id="JELON__btnDropNav"></div>
        <ul class="menu hidden" id="JELON__menu">
            
            <li rel="/archives/2019/page/2/index.html" class="item ">
                <a href="/" title="首页" class="icon-home">&nbsp;首页</a>
            </li>
            
            <li rel="/archives/2019/page/2/index.html" class="item ">
                <a href="/about/" title="关于" class="icon-about">&nbsp;关于</a>
            </li>
            
            <li rel="/archives/2019/page/2/index.html" class="item ">
                <a href="/comment/" title="留言" class="icon-comment">&nbsp;留言</a>
            </li>
            
        </ul>
        <div class="profile clearfix">
            <div class="feeds fl">
                
                
                <p class="links">
                    
                        <a href="https://github.com/starryming" target="_blank">Github</a>
                        |
                    
                        <a href="http://ljmstarry.gitee.io" target="_blank">Hosted by Coding Pages</a>
                        
                    
                </p>
                <p class="sns">
                    
                        <a href="http://weibo.com/" class="sinaweibo" target="_blank"><b>■</b> 新浪微博</a>
                    
                        <a href="https://www.facebook.com/" class="qqweibo" target="_blank"><b>■</b> Facebook</a>
                    
                    <a href="javascript: void(0);" class="wechat">
                        <b>■</b>
                        公众号
                        <span class="popover">
                            <img src="/img/wechat_mp.jpg" width="120" height="120" alt="我的微信订阅号">
                            <i class="arrow"></i>
                        </span>
                    </a>
                </p>
                
            </div>
            <div class="avatar fr">
                <img src="/img/timg.jpg" alt="avatar" title="Jim">
            </div>
        </div>
    </section>
</header>


    <!-- 博客正文 -->
    <div class="container body clearfix">
        <section class="content">
            <div class="content-main widget">
                <!-- 文章归档 -->

    <h3 class="widget-hd">
        <strong>
            
                文章归档
                <!-- 文章归档，可以根据日期分类 -->
            
        </strong>
    </h3>
    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/technology/">technology</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2019/06/23/SpringBoot读写分离实现/">
    		SpringBoot读写分离实现
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2019-06-23T13:25:21.000Z">2019-06-23</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/java/" title="java">java</a> / 
    
        <a href="/tags/springBoot/" title="springBoot">springBoot</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h3 id="SpringBoot-读写分离实现"><a href="#SpringBoot-读写分离实现" class="headerlink" title="SpringBoot 读写分离实现"></a>SpringBoot 读写分离实现</h3><blockquote>
<p>在配置完成mysql主从复制后，利用AOP实现读写分离，动态切换数据源。</p>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2019/06/23/SpringBoot读写分离实现/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2019/06/23/SpringBoot读写分离实现/" title="SpringBoot读写分离实现">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/3.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/technology/">technology</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2019/06/22/design_pattern_外观模式/">
    		外观模式
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2019-06-22T12:21:17.000Z">2019-06-22</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/设计模式/" title="设计模式">设计模式</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h2 id="外观模式"><a href="#外观模式" class="headerlink" title="外观模式"></a>外观模式</h2><blockquote>
<p>外观模式(门面模式)，多个子系统有许多接口，我们提供一个外观类，统一进行管理开放，访问外观类来间接访问子系统接口。优点是松耦合，缺点是不灵活，增加子系统即需要修改外观类。</p>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2019/06/22/design_pattern_外观模式/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2019/06/22/design_pattern_外观模式/" title="外观模式">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/2.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/technology/">technology</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2019/04/18/design_pattern单例模式/">
    		单例模式
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2019-04-18T06:14:36.000Z">2019-04-18</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/设计模式/" title="设计模式">设计模式</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h2 id="单例模式-Singleton"><a href="#单例模式-Singleton" class="headerlink" title="单例模式(Singleton)"></a>单例模式(Singleton)</h2><h5 id="为什么要用单例？"><a href="#为什么要用单例？" class="headerlink" title="为什么要用单例？"></a>为什么要用单例？</h5><p>  单例模式能够保证一个类仅有唯一的实例，并提供一个全局访问点。</p>
<p>  例：在线人数问题，可抽象为“计数器”的对象，需要用到计数器的地方，通过new一个计数器对象，实现计数，</p>
<p>​    但是假如有多个用户同时登陆的话，通过计数器获取到的在线人数是相同的，基于此实现的+1操作，会存在   </p>
<p>​    数据与真实数据不一致。</p>
<p>​    因此：把计数器设计为一个全局对象，所有人公用同一份数据，就可以避免类似问题，单例的一种应用。</p>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2019/04/18/design_pattern单例模式/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2019/04/18/design_pattern单例模式/" title="单例模式">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/8.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/technology/">technology</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2019/04/09/SSM图片上传/">
    		SSM图片上传
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2019-04-09T02:44:32.000Z">2019-04-09</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/java/" title="java">java</a> / 
    
        <a href="/tags/technology/" title="technology">technology</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h2 id="SSM图片上传"><a href="#SSM图片上传" class="headerlink" title="SSM图片上传"></a>SSM图片上传</h2><blockquote>
<p>  基于SSM的图片上传实现。</p>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2019/04/09/SSM图片上传/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2019/04/09/SSM图片上传/" title="SSM图片上传">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/9.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/linus/">linus</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2019/03/05/myql集群搭建/">
    		myql集群搭建
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2019-03-05T09:24:07.000Z">2019-03-05</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/linus/" title="linus">linus</a> / 
    
        <a href="/tags/mysql/" title="mysql">mysql</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <p>搭建mysql集群 / 主从备</p>
<h4 id="准备"><a href="#准备" class="headerlink" title="准备"></a>准备</h4><table>
<thead>
<tr>
<th>tar包</th>
<th>路径</th>
</tr>
</thead>
<tbody>
<tr>
<td>mysql5.7.11</td>
<td><a href="http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.11-Linux-glibc2.5-x86_64.tar.gz" target="_blank" rel="noopener">http://dev.MySQL.com/get/Downloads/MySQL-5.7/mysql-5.7.11-Linux-glibc2.5-x86_64.tar.gz</a></td>
</tr>
</tbody>
</table>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2019/03/05/myql集群搭建/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2019/03/05/myql集群搭建/" title="myql集群搭建">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/5.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/linus/">linus</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2019/03/05/Nginx服务器搭建/">
    		Nginx服务器搭建
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2019-03-05T09:11:31.000Z">2019-03-05</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/linus/" title="linus">linus</a> / 
    
        <a href="/tags/ngnix/" title="ngnix">ngnix</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <p>搭建Nginx服务器 / 图片服务器。</p>
<p>参考 <a href="https://blog.csdn.net/CSDN_LQR/article/details/53334583" target="_blank" rel="noopener">https://blog.csdn.net/CSDN_LQR/article/details/53334583</a></p>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2019/03/05/Nginx服务器搭建/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2019/03/05/Nginx服务器搭建/" title="Nginx服务器搭建">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/5.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/linus/">linus</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2019/03/05/Docker-部署/">
    		Docker 部署
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2019-03-05T06:40:17.000Z">2019-03-05</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/linus/" title="linus">linus</a> / 
    
        <a href="/tags/Docker/" title="Docker">Docker</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <p>在云服务器上、centos7，使用docker容器来搭建各种服务。</p>
<ul>
<li>docker安装</li>
<li>redis</li>
<li>mysql 主从</li>
<li>rabbitmq</li>
<li>zookeeper</li>
</ul>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2019/03/05/Docker-部署/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2019/03/05/Docker-部署/" title="Docker 部署">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/5.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/others/">others</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2019/03/05/hello-world/">
    		Hello World
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2019-03-05T03:30:55.113Z">2019-03-05</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/test/" title="test">test</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2019/03/05/hello-world/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2019/03/05/hello-world/" title="Hello World">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/5.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    

    
    <nav class="page-navigator">
        <a class="extend prev" rel="prev" href="/archives/2019/">前一页</a><a class="page-number" href="/archives/2019/">1</a><span class="page-number current">2</span>
    </nav>
    


            </div>

        </section>
        <!-- 侧栏部分 -->
<aside class="sidebar">
    <section class="widget">
        <h3 class="widget-hd"><strong>文章分类</strong></h3>
        <!-- 文章分类 -->
<ul class="widget-bd">
    
    <li>
        <a href="/categories/linus/">linus</a>
        <span class="badge">(4)</span>
    </li>
    
    <li>
        <a href="/categories/technology/">technology</a>
        <span class="badge">(8)</span>
    </li>
    
    <li>
        <a href="/categories/Reading/">Reading</a>
        <span class="badge">(13)</span>
    </li>
    
    <li>
        <a href="/categories/others/">others</a>
        <span class="badge">(1)</span>
    </li>
    
    <li>
        <a href="/categories/linus/technology/">technology</a>
        <span class="badge">(1)</span>
    </li>
    
    <li>
        <a href="/categories/mysql/">mysql</a>
        <span class="badge">(1)</span>
    </li>
    
    <li>
        <a href="/categories/mysql/technology/">technology</a>
        <span class="badge">(1)</span>
    </li>
    
</ul>
    </section>

    
    <section class="widget">
        <h3 class="widget-hd"><strong>热门标签</strong></h3>
        <!-- 文章标签 -->
<div class="widget-bd tag-wrap">
  
    <a class="tag-item" href="/tags/linus/" title="linus">linus (4)</a>
  
    <a class="tag-item" href="/tags/ngnix/" title="ngnix">ngnix (1)</a>
  
    <a class="tag-item" href="/tags/源码学习/" title="源码学习">源码学习 (2)</a>
  
    <a class="tag-item" href="/tags/阅读/" title="阅读">阅读 (13)</a>
  
    <a class="tag-item" href="/tags/Thinking-In-Java/" title="Thinking In Java">Thinking In Java (5)</a>
  
    <a class="tag-item" href="/tags/java/" title="java">java (3)</a>
  
    <a class="tag-item" href="/tags/technology/" title="technology">technology (1)</a>
  
    <a class="tag-item" href="/tags/springBoot/" title="springBoot">springBoot (2)</a>
  
    <a class="tag-item" href="/tags/设计模式/" title="设计模式">设计模式 (3)</a>
  
    <a class="tag-item" href="/tags/test/" title="test">test (1)</a>
  
    <a class="tag-item" href="/tags/Effective-Java/" title="Effective Java">Effective Java (8)</a>
  
    <a class="tag-item" href="/tags/mysql/" title="mysql">mysql (2)</a>
  
    <a class="tag-item" href="/tags/Docker/" title="Docker">Docker (1)</a>
  
</div>
    </section>
    

    

    
    <!-- 友情链接 -->
    <section class="widget">
        <h3 class="widget-hd"><strong>友情链接</strong></h3>
        <!-- 文章分类 -->
<ul class="widget-bd">
    
        <li>
            <a href="https://www.bilibili.com" target="_blank" title="bilibili">哔哩哔哩</a>
        </li>
    
        <li>
            <a href="https://www.baidu.com" target="_blank" title="百度搜索">百度</a>
        </li>
    
</ul>
    </section>
    
</aside>
<!-- / 侧栏部分 -->
    </div>

    <!-- 博客底部 -->
    <footer class="footer">
    &copy;
    
        2016-2020
    

    <a href="/">Jim Loves You</a>
</footer>
<div class="back-to-top" id="JELON__backToTop" title="返回顶部">返回顶部</div>

    <!--博客js脚本 -->
    <!-- 这里放网站js脚本 -->
<script src="/js/main.js"></script>
</body>
</html>